<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>管理平台</title>
    <link rel="stylesheet" type="text/css" href="/css/style.css">
  </head>

  <body>
    <h1>Android服务支撑平台欢迎你, ${user}</h1>
    <p></p>
    <div id="menu">
    	<jsp:include page="menu.jsp"></jsp:include>
    </div>
    <div id="content">
    <h5>网友留言列表</h5>
    <table border="1" cellpadding="10" cellspacing="0">
      <tr>
      	<td style="font-weight:bold;">ID</td>
        <td style="font-weight:bold;">发信人</td>        
        <td style="font-weight:bold;">短信内容</td>
        <td style="font-weight:bold;">联系方式</td>
        <td style="font-weight:bold;">时间</td>
      </tr>
      <c:forEach items="${emails}" var="email">
      	<tr>
        <td style="font-weight:bold;">${email.id}&nbsp;</td>        
        <td style="font-weight:bold;">${email.contactor}&nbsp;</td>        
        <td style="font-weight:bold;">${email.content}&nbsp;</td>
        <td style="font-weight:bold;">${email.contactmethod}&nbsp;</td>
        <td style="font-weight:bold;"><fmt:formatDate value="${email.date}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
      </tr>
      </c:forEach>
    </table>
    </div>
  </body>
</html>